#! /bin/bash
cd /home/ubuntu/projects/code/MonitoringService
git pull --all
mvn -U clean package -Dmaven.test.skip=true
cp /home/ubuntu/projects/code/MonitoringService/docker-compose.yml /home/ubuntu/projects/monitoringService/
cp /home/ubuntu/projects/code/MonitoringService/src/main/resources/application.yml /home/ubuntu/projects/monitoringService/
cd /home/ubuntu/projects/monitoringService
sudo docker compose down
sudo docker compose up -d